package edu.bu.cs673.superkids123.children.model.resources;

/**
 * Declares what resources the xml file contains
 * @author Adam
 *
 */
public enum ResourceFormat {
	Images ("Images"), 
	Audio ("Audio"), 
	Both ("Both");
	
    /** The name. */
    private final String name;       

    /**
     * Instantiates a new resource type.
     *
     * @param s the s
     */
    private ResourceFormat(String s) {
        name = s;
    }

    /**
     * Equals name.
     *
     * @param otherName the other name
     * @return true, if successful
     */
    public boolean equalsName(String otherName){
        return (otherName == null) ? false : name.equals(otherName);
    }

    /* (non-Javadoc)
     * @see java.lang.Enum#toString()
     */
    public String toString(){
       return name;
    }
}
